package vld

import (
	sqlc "bp/db/sqlc"
)

// IsScope check string is em_scope
func IsScope(v string) (success bool) {
	switch sqlc.EmScope(v) {
	case sqlc.EmScopeNone, sqlc.EmScopeUnlimited,
		sqlc.EmScopeIncludeItemCategoriesExcludeItems,
		sqlc.EmScopeExcludeItemCategories, sqlc.EmScopeIncludeItems, sqlc.EmScopeExcludeItems:
		success = true
	}
	return
}
